package cn.bb.service;

import cn.bb.dao.IAdminDao;
import cn.bb.pojo.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("adminService")
public class IAdminServiceImpl implements IAdminService {
    @Autowired
    private IAdminDao iAdminDao;
    @Override
    public Admin loginUser(Admin admin) {
        return iAdminDao.login(admin);
    }

    public IAdminDao getiAdminDao() {
        return iAdminDao;
    }

    public void setiAdminDao(IAdminDao iAdminDao) {
        this.iAdminDao = iAdminDao;
    }
}
